package com.yds.dccjll.androidhome.oschina.webview;

import android.webkit.JavascriptInterface;

/**
 * Created by dccjll on 2017/5/3.
 * oschina页面交互接口
 */

public class OschinaWebContentJSInterface {

    private OschinaWebContentActivity.OnLoadAuthCodeListener onLoadAuthCodeListener;

    public void setOnLoadAuthCodeListener(OschinaWebContentActivity.OnLoadAuthCodeListener onLoadAuthCodeListener) {
        this.onLoadAuthCodeListener = onLoadAuthCodeListener;
    }

    @JavascriptInterface
    public void loadAuthCode(String authCode) {
        onLoadAuthCodeListener.onLoadAuthCodeSuccess(authCode);
    }
}
